package com.gopay.common.domain.bis;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 银行交互服务-网银付款到客户配置信息表
 * 
 * @BisEbankCustConfig.java
 * @author yaobo
 * @2013-11-5 下午05:30:52 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "BIS_EBANK_PAY2CUST_CFG")
public class BisEbankCustConfig extends BaseBisBankConfig {

    /**
     * 
     */
    private static final long serialVersionUID = 8481648399893988090L;

    /**
     * 流水号
     */
    @Id
    @Column(name = "SQ")
    @SequenceGenerator(name="BIS_EBANK_PAY2CUST_CFG_SQ_GENERATOR", sequenceName="BIS_EBANK_PAY2CUST_CFG_SEQ")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BIS_EBANK_PAY2CUST_CFG_SQ_GENERATOR")
    private int id;

    /**
     * 银行代码
     */
    @Column(name = "BANK_CODE")
    protected String bankCode;

    /**
     * 结算账户开户名
     */
    @Column(name = "ACCT_NAME")
    protected String acctName;

    /**
     * 结算账户号
     */
    @Column(name = "ACCT_NUM")
    protected String acctNum;

    /**
     * 结算账户网点名称
     */
    @Column(name = "BRANCH_NAME")
    protected String branchName;

    /**
     * 结算账户网点联行号
     */
    @Column(name = "BRANCH_CODE")
    protected String branchCode;

    /**
     * 是否支持生成批量付款文件
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_GENERATE_BATCH_FILE", nullable = false, precision = 1, scale = 0)
    private boolean generateBatch;
    
    
    /**
     * 排序优先级
     */
    @Column(name = "PRIORITY_NUM")
    private int priorityNum;
    
    
    /**
     * 接口通道代码
     * 
     * 00 - 直连银行 
     */
    @Column(name = "INTRFACE_CHANNEL_CODE")
    protected String chCode;
    
    /**
     * 是否可用
     * 
     * 0 - 不可用 1 - 可用
     */
    @Column(name = "AVAILABLE", nullable = false, precision = 2, scale = 1)
    protected boolean available;
    

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getAcctName() {
		return acctName;
	}

	public void setAcctName(String acctName) {
		this.acctName = acctName;
	}

	public String getAcctNum() {
		return acctNum;
	}

	public void setAcctNum(String acctNum) {
		this.acctNum = acctNum;
	}

	public String getBranchName() {
		return branchName;
	}

	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	public String getBranchCode() {
		return branchCode;
	}

	public void setBranchCode(String branchCode) {
		this.branchCode = branchCode;
	}

	public boolean isGenerateBatch() {
		return generateBatch;
	}

	public void setGenerateBatch(boolean generateBatch) {
		this.generateBatch = generateBatch;
	}

	public int getPriorityNum() {
		return priorityNum;
	}

	public void setPriorityNum(int priorityNum) {
		this.priorityNum = priorityNum;
	}

	public String getChCode() {
		return chCode;
	}

	public void setChCode(String chCode) {
		this.chCode = chCode;
	}

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }
    
    
}
